﻿namespace WPHttpServer
{
    public class BinaryContextProvider : IResponseContentProvider
    {
        public byte[] BinaryContent { get; set; }

        public BinaryContextProvider(byte[] binaryContent)
        {
            BinaryContent = binaryContent;
        }

        public byte[] GetContentData()
        {
            return BinaryContent;
        }

        public string ContentMediaTypeName
        {
            get { return "application/octet-stream "; }
        }
    }
}
